<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/23
  Time: 22:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <script src="../font_2145705_sx71g817y2f/iconfont.js"></script>
    <style>
        p,body,ul,h3{
            padding: 0;
            margin: 0;
        }
        div {
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
        ul {
            list-style: none;
        }
        a {
            text-decoration: none;
            color: black;
        }
        img {
            border: none;
            display: block;
        }
        body {
            /* background-color: rgb(255, 242, 226) */
            background-color:  #ef4b4b;
        }
        .rg_layout {
            border-radius: 11px;
            width: 950px;
            margin: 60px auto;
            background-color: #fff;
            border: 7px solid #eee;
        }
        .good_list {
            border-bottom: 1px solid #eee;
            height: 200px;
            width: 100%;
            margin-bottom: 3px;
            overflow: hidden;
        }
        .good_list img {
            margin-left: 25px;
            height: 200px;
            width: 200px;
            float: left;
        }
        .good_name {
            float: left;
            height: 200px;
            width: 290px;
            line-height: 200px;
            padding: 0 5px;
            text-indent: 2em;
        }
        .good_price {
            line-height: 200px;
            font-size: 31px;
            width: 300px;
            height: 200px;
            float: left;
            color: #e4393c;
        }
        .good_check {
            width: 100px;
            height: 200px;
            float: left;
        }
        .input_check {
            margin-left: 30px;
            margin-top: 90px;
            width: 23px;
            height: 23px;
        }
        .rg_navi {
            height: 66px;
            width: 100%;
            background-color: #fff;
            position: relative;
            overflow: hidden;
            border-bottom: 2px solid #f30213;
        }
        .rg_navi span {
            float: right;
            margin-right: 21px;
            margin-top: 30px;
        }
        .rg_navi h3 {
            font-size: 30px;
            float: left;
            margin-left: 90px;
            margin-top: 10px;
            color: black;
        }
        .rg_navi a {
            float: left;
            margin-left: 50px;
            margin-top: 23px;
            font-size: 20px;
        }
        .icon {
            width: 1em;
            height: 1em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
        }
    </style>
</head>
<body>
<div class="rg_navi">
    <h3>
        <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-shouye"></use>
        </svg>
        购物车
    </h3>
    <a href="/user/goodList">返回首页></a>
    <span>${sessionScope.uid}的购物车</span>
</div>
<form action="#">
    <div class="rg_layout">
        <c:forEach items="${sessionScope.shoppingCar}" var="good" varStatus="s">
            <div class="good_list">
                <img src="../imgs/${good.gsrc}">
                <div class="good_name">
                        ${good.gname}
                </div>
                <div class="good_price">
                    售价￥${good.gprice}
                </div>
                <div class="good_check">
                    <input class="input_check" type="checkbox" name="goods" value="${good.gid}">
                </div>
            </div>
        </c:forEach>
    </div>
</form>
</body>
</html>
